<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Usaha extends CI_Controller {

	public function __construct()
	{
		parent::__construct();
		
		$this->load->helper(array('url','cookie','html','language','security'));
		$this->load->library(array('parser','session','user_agent','pagination'));
		
		
		$uagent = do_hash($this->agent->browser());
		$platform = do_hash($this->agent->platform());
		
		if($this->input->cookie('dsn_platform') == '' OR $this->input->cookie('dsn_agent') == ''){
			$dsn_platform = array(
				'name'   => 'dsn_platform',
				'value'  => $platform,
				'expire' => '86500',
				'path'   => '/',
				'secure' => FALSE
			);
			
			$this->input->set_cookie($dsn_platform); 
			
			$dsn_agent = array(
				'name'   => 'dsn_agent',
				'value'  => $uagent,
				'expire' => '86500',
				'path'   => '/',
				'secure' => FALSE
			);
			$this->input->set_cookie($dsn_agent); 
			
		}
		
		$this->load->model('Main_model','mainmodel',TRUE);
		
	}
	   
	public function index()
	{
		$this->load->view('main/perusahaan');
	}
	
	public function detail()
	{
		$this->load->view('usaha/detail');
	}
	
	public function produk()
	{
		$this->load->view('usaha/produk');
	}
	
	public function loker()
	{
		$this->load->view('usaha/loker');
	}
	
}

/* End of file company.php */
/* Location: ./application/controllers/company.php */
